/**
 * @author Azeem
 *
 */
package edu.nus.iss.t5.jass.util;

import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;

public class DateUtil {
		
	public static final	String DATE_FORMAT_IN_JASS = "dd/MM/yyyy";
	    
	public static String convertDateToStr(Date date) {
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT_IN_JASS);
		return sdf.format(date);
	}
	
	public static Date convertStrToDate(String stDate) throws ParseException{
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT_IN_JASS);
		return sdf.parse(stDate);
	}
		
}
